﻿@{
    if (Session["auth"] == null || (int)Session["auth"] != 1)
    {
        //Response.Redirect("/auth");
    }
}
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="content-type" content="text/html" charset="utf-8" />
	<meta name="author" content="4F SHOP" />
    <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/admin/css/bootstrap.css")" media="screen"/>
    <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/admin/css/bootstrap-responsive.css")" media="screen"/>
    <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/admin/css/smoothness/jquery-ui-1.9.2.custom.css")" media="screen"/>
	<link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/admin/css/simplePagination.css")" />
    <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/admin/css/style.css")" />
    <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/admin/js/fancybox/jquery.fancybox-1.3.4.css")" type="text/css">
    <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/admin/js/colorpicker/jquery.colorpicker.css")" />
    <script type="text/javascript" src="@Url.Content("~/Content/admin/js/jquery-1.8.3.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Content/admin/js/jquery.simplePagination.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Content/admin/js/fancybox/jquery.fancybox-1.3.4.pack.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Content/admin/js/jquery-ui-1.9.2.custom.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Content/admin/js/colorpicker/jquery.colorpicker.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Content/ckeditor/ckeditor.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Content/ckfinder/ckfinder.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Content/admin/js/jquery.nicescroll.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Content/admin/js/bootstrap.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Content/admin/js/jquery.geocomplete.js")"></script>
    <script src="http://maps.googleapis.com/maps/api/js?sensor=false&amp;libraries=places"></script>
    <script type="text/javascript" src="@Url.Content("~/Content/admin/js/main.js")"></script>
    
    <script type="text/javascript">
        $(function () {
            var $hash = window.location.hash;
            var $strHash = $hash.split("=");
            var $numPage = $strHash[1];
            var $keyword = $("#_search").val();
            if ($numPage == undefined) $numPage = 1;

            //Load Content
            if ($("#_loadContent").length) {
                LoadContent("@ViewBag.Controller", $numPage, "@Request.QueryString["sort_by"]", "@Request.QueryString["sort_type"]", $keyword)
            }
            
            //Load Search
            LoadSearch("@ViewBag.Controller", $numPage, "@Request.QueryString["sort_by"]", "@Request.QueryString["sort_type"]")

            //Acitve Status
            UpdateStatus("@ViewBag.Controller");

            //Icon Sort Down/Up
            SortStatus("@Request.QueryString["sort_by"]", "@Request.QueryString["sort_type"]");
        });
    </script>

	<title>4F SHOP</title>
</head>

<body>
	<!--Header-->
	<header>
		<a href="/admin" title="Home"><img class="logo" src="@Url.Content("~/Content/admin/images/logo.png")" title="logo" />	</a>
		<div class="account">
            <img src="@Url.Content("~/Content/admin/images/avatar.jpg")" alt="avatar" title="avatar" />
            <div class="info">
            	Chào
            	<p>@Session["username"]</p>
            </div>
            <ul class="box-setting">
                <li><a href="/admin/account/update?id=@Session["id"]">Cập nhật</a></li>
                <li><a href="/auth/logout">Thoát</a></li>
            </ul>
        </div>
	</header>
	<!--End Header-->

	<!--Nav-->
	<ul class="nav">
		<li><a href="/admin/seo" class="item" title="Bảng chính"><span class="icon icon-home"></span> Bảng chính</a></li>
		<li><a href="#" class="item" title=""><span class="icon icon-product"></span> Sản phẩm <span class="icon-arrow"></span></a>
            <ul>
                <li><a href="/admin/category" title="Danh mục">Danh mục</a></li>
                <li><a href="/admin/product" title="Sản phẩm">Sản phẩm</a></li>
                <li><a href="/admin/maker" title="Hãng sản xuất">Hãng sản xuất</a></li>
                <li><a href="/admin/properties" title="Thuộc tính">Thuộc tính</a></li>
            </ul>
        </li>
		<li><a href="#" class="item" title=""><span class="icon icon-member"></span> Thành viên <span class="icon-arrow"></span></a>
			<ul>
                <li><a href="/admin/account" title="Thành viên">Thành viên</a></li>
            </ul>
		</li>
        <li><a href="/admin/contents" class="item" title=""><span class="icon icon-edit"></span> Nội dung</a></li>
		<!--<li><a href="#" class="item" title=""><span class="icon icon-statistics"></span> Thông kê <span class="icon-arrow"></span></a>
            <ul>
                <li><a href="#" title="Lượt truy cập">Lượt truy cập</a></li>
				<li><a href="#" title="Thông kê doanh thu">Thông kê doanh thu</a></li>
            </ul>
        </li>-->
        <li><a href="/admin/filemanager" class="item" title=""><span class="icon icon-folder-open"></span> File Manager</span></a></li>
		<li><a href="#" class="item" title=""><span class="icon icon-settings"></span> Cài đặt <span class="icon-arrow"></span></a>
            <ul>
				<li><a href="/admin/seo" title="SEO Website">SEO Website</a></li>
                <li><a href="#" title="Backup Database">Backup Database</a></li>
            </ul>
        </li>
	</ul>
	<!--End Nav-->

    @RenderBody()

    <!--Loading-->
    <div class="overplay"></div>
    <!--End Loading-->

	<!--Footer-->
	<footer>
        <p>&COPY; 2013 - 2015. Thiết kế bởi: Tiến Phạm</p>
        <p>onepro166@gmail.com</p>
	</footer>
	<!--End Footer-->
</body>
</html>
